function [price]=fistPricequarter(frTime,id)
%  code nay tuy co cach ngan hon la lay nguyen quy nhung lam ton bo nho
fromTime=datestr(frTime,'dd/mm/yyyy');
tem=get_info_from_database('security', 'sec_id', id , ...
    'from', fromTime, 'to', fromTime);
if isempty(tem)==1
    dem=1;
    while (isempty(tem)==1)
        frTime=frTime+dem;
        dem=dem+1;
        fromTime=datestr(frTime,'dd/mm/yyyy');
        tem=get_info_from_database('security', 'sec_id', id , ...
            'from', fromTime, 'to', fromTime);
    end
end
% pos=dem;
price=tem(1,[2 4 5 6]);
